package com.etc.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.etc.entity.User;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
	List<User> selectByPage(int start, int limit, String content);
	
	int selectCount(String content);
	//管理员登录校验
	User selectByUser(User user);
	//根据用户名查找用户
	User selectByUsername(String  username);
	//普通用户登录校验
	User checkByUser(User user);
	//用户注册
	int insertuser(User user);
	
	int updateStauts (int userid);
}